
export const state = () => ({
  token: null
});

export const mutations = {
  setToken(state, token) {
    this.$cookies.set('token',  token)
    state.token = token;
  },
  removeToken(state) {
    this.$cookies.remove('token')
    state.token = '';
  }
};
export const getters = {
  token: state => state.token
};